﻿/*------------------------------------------------
// File Description: RoleModule DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-02-04 16:57:41
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 角色模块表
    /// </summary>
    [Table(nameof(RoleModule))]
    public class RoleModule : BaseEntity
    {

        #region Public Property

        ///<Summary>
        /// 部门ID
        ///</Summary>
        public int DepartmentId { get; set; }

        ///<Summary>
        /// 角色ID
        ///</Summary>
        public int RoleId { get; set; }

        ///<Summary>
        /// 模块ID
        ///</Summary>
        public int ModuleId { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 角色模块表
        /// </summary>
        public virtual DbSet<RoleModule> RoleModules { get; set; }
    }
}